package com.example.xd.javatest.build_test;

import com.example.xd.javatest.build_test.bean.Cpu;
import com.example.xd.javatest.build_test.bean.MainBoard;
import com.example.xd.javatest.build_test.bean.Ram;

/**
 * @auther XuDan on 2020/6/16.
 * 实例化各个组件
 */
public class ComputerBuilder implements Builder {
    @Override
    public Cpu createCPU() {
        return new Cpu("cpu");
    }

    @Override
    public MainBoard createMainBoard() {
        return new MainBoard("主机");
    }

    @Override
    public Ram createRam() {
        return new Ram("ram");
    }
}
